import dayjs from "dayjs"

// 获取系统时间问候语
export const getTimeStatus = () => {
    let now = dayjs().format("HH") as any
    let msg:string = ""
    if (now >= 0 && now < 6) {
        msg = "早上好"
    } else if(now >= 6 && now < 12) {
        msg = "上午好"
    } else if(now >= 12 && now < 18) {
        msg = "下午好"
    } else {
        msg = "晚上好"
    }
    return msg
}
